Imports Aricie.DNN.Caching.Analysis.Graphs
Imports QuickGraph
Imports System.Xml

Namespace Aricie.DNN.Caching.Analysis.Graphs
    <Serializable()> _
    Public Class DistributedCachingGraph
        Inherits BidirectionalGraph(Of DistributedCachingNode, DistributedCachingEdge)

        Public Sub New()
            MyBase.New()
        End Sub

        Public Sub New(ByVal allowParallelEdges As Boolean)
            MyBase.New(allowParallelEdges)
        End Sub


        Public Sub New(ByVal allowParallelEdges As Boolean, ByVal vertexCapacity As Integer)
            MyBase.New(allowParallelEdges, vertexCapacity)
        End Sub

        Public Shared Function AllGraphsPredicate(ByVal objMatch As DistributedCachingGraph) As Boolean
            Return True
        End Function

        Public Shared Function Factory(ByVal reader As XmlReader) As DistributedCachingGraph
            Return DirectCast(reader.ReadContentAs(GetType(DistributedCachingGraph), Nothing), DistributedCachingGraph)
        End Function

    End Class
End Namespace